home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-13 | 2.5 KB | 77 lines | [TEXT/MMCC] |
- Greg Anderson
- Final rev: October 1994
-
-
- About the program "Finder Snapshot"
- -----------------------------------
- "Finder Snapshot" is a program that remembers the set of open
- Finder windows and their positions, and saves that information
- in a "Window Set" document. Whenever the window set document
- is opened, "Finder Snapshot" reads the saved information and
- reopens and repositions all of the windows that were saved when
- the document was created.
-
- Some people find that this sample is actually useful. Imagine
- that!
-
-
- How the Source is organized
- ---------------------------
- "Finder Snapshot" consists of a number of source files, some of
- which stand on their own, and some of which require support from
- other files in the project. It uses the same mini application
- framework that I used in Zawphing and some other sample apps I've
- written, but it's a bit stripped down, since it doesn't have
- any windows or any real event loop.
-
-
- The main files that define the application "Finder Snapshot" are:
-
- Main.cp Initializes the Macintosh toolbox and
- begins execution of the application.
-
- SaveWindows.cp The code that actually sends AppleEvents
- to the Scriptable Finder. This file handles
- restoring window positions too.
-
-
- The "Mini-application framework" is defined by the following
- sources:
-
-
- EventHandler.cp Calls WaitNextEvent and dispatches events
- to the appropriate handlers.
-
-
- The primary utilities of note are:
-
- AppleEventUtilities.cp A stand-alone set of C++ wrappers for
- the AppleEvent manager. Includes useful
- classes for accessing parameters in
- records, iterating items in lists, and
- building descriptors, lists and records.
-
- Exceptions.cp Very useful code that implements a failure
- handler with Try/Catch semantics. (No dependancies)
-
- NextEvent.cp Old code that used to abstract WaitNextEvent
- vs. GetNextEvent for running on System 6 without
- MultiFinder (yes, very old code!). Had some
- problems with native code, so now it just calls
- WaitNextEvent directly, and therefore is of
- marginal value.
- Uses MacUtilities.cp.
-
- MacUtilities.cp Simple, useful routines that many Macintosh
- applications will use. (No dependancies)
-
- StringUtilities.cp Simple code that manages C and Pascal strings.
- Not as useful as a real string class, but better
- than nothing. (No dependancies)
-
-
- And, a header not yet in the standard set but used by Finder Snapshot:
-
- FinderRegistry.h Defines classes, properties, data types and
- error codes used by the Scriptable Finder.
-